package cn.edu.gzhu.workOrderManagement.pojo.dto.organization;

import cn.edu.gzhu.workOrderManagement.constants.MessageConstant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrganizationListDto {
   private String name;

   private Integer capacity;

   private Boolean isAvailable;

   private Boolean isHead;

   @NotNull
   @Min(value = 1)

   private Integer startPage;

   @NotNull
   @Max(value = 50)
   private Integer pageSize;
}
